home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3528 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.eunet.fi!fipnet!kone!jsaarinen
  2. Newsgroups: comp.sys.amiga.programmer
  3. X-NewsReader: IntuiNews 1.2b (31.7.94)
  4. References: <4g5mv0$sns@news01.uni-trier.de> <4g7ui9$em3@maureen.teleport.com>
  5. From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
  6. Date: Wed, 21 Feb 96 10:15:09 UT
  7. Comments: Illegal date header - new date added by quicknews
  8. X-Original-Date: Tue, 20 Feb 96 21:46:35 
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: binary
  12. Subject: Re: Wolfenstein Texture mapping problem
  13. Message-ID: <38232549@kone.fipnet.fi>
  14.  
  15.  
  16. >  Now what you could do is use self creating code :
  17. >  move.b (a0),(width*0,a1)
  18. >  move.b (a0),(width*1,a1)
  19. >  move.b (a0)+,(width*2,a1)
  20. >  etc...
  21. >  create a peice of code for each scale factor that you want to speedup.
  22. >  probably only the tall lines, and just to wich ever code is best for
  23. >  the condition. but this will only give you a ~30% speedup vs the first
  24. >  methode.
  25.  
  26. An interesting method! Cache will be trashed though..
  27. This would be the fastest solution on the 68000 though.
  28.  
  29. >  using precalc table like this
  30. >  move.w  (a3)+,d0
  31. >  movea.l d0,a0
  32. >  move.b  (a0),(a1)
  33. >  adda.l  a2,a1
  34. >  is bad.... My guess is stick with the good old 3 inst/pixel methode.
  35.  
  36. Yep. A shading table is needed though.
  37.  
  38. >  Mapping floor with a 32x32 texture pattern can be done in 13cycle
  39.  
  40. Hmm. How was this loop again, I have forgot it..?
  41.  
  42. --                               _
  43. a Stellar programmer          _ //
  44. "Amiga - back for the future" \X/
  45.